package easy;

import util.PrintUtils;

public class Solution_1725 {
    public int countGoodRectangles(int[][] rectangles) {
        int count = 0, max = 0;
        for (int[] rectangle : rectangles) {
            int temp = Math.min(rectangle[0], rectangle[1]);
            if (temp > max) {
                count = 1;
                max = temp;
            } else if (temp == max) {
                count++;
            }
        }
        return count;
    }

    public static void main(String[] args) {
        Solution_1725 model = new Solution_1725();

    }
}
